package priv.yiyuan.example.design.wrapper;

/**
 * 战士工厂
 * <p>
 * 工厂方法模式-具体工厂
 *
 * @author YiYuan
 * @data 2025/9/2
 * @apoNote
 */
public class WarriorFactory implements CharacterFactory {

    @Override
    public GameCharacter createCharacter() {

        System.out.println("战士工厂: 正在创建基础战士...");
        System.out.println("战士工厂: 为战士穿戴默认盔甲和武器...");
        return new WeaponDecorator(new ArmorDecorator(new Warrior()));
    }
}
